<?php

if (!defined('IN_PROVERB')) {
    exit('Access Denied');
}
?>
<?php include ROOT_PATH . '/views/admin/header.php'; ?>
<body>


<form method="post" action="index.php?con=<?php echo $GLOBALS['setting']['adminpath']; ?>&act=dangyuanxuqiu" name="searchform">
    <table width="100%" cellspacing="0" class="search-form">
        <tbody>
        <tr>
            <td>
                <div class="explain-col">
                    关键字：<INPUT TYPE="text" NAME="keyword" class="input-text"
                               value="<?php echo $_REQUEST['keyword']; ?>">

                    <input type="submit" class="button" value="确定">
                </div>
            </td>

        </tr>
        </tbody>
    </table>
</form>

<div class="table-list">
    <TABLE cellpadding="1" cellspacing="1" width="100%">
        <thead>
        <TR>
            <TH width="13%">需求名称</TH>
            <TH width="13%">需求描述</TH>
            <TH width="13%">起止时间</TH>
            <TH width="13%">需求地点</TH>
            <TH width="13%">需求人数</TH>
            <TH width="13%">意见建议</TH>
            <TH width="10%">发布时间</TH>
            <TH width="14%">操作</TH>
        </TR>
        </thead>
        <tbody>
        <?php foreach ($taglist['data'] as $key => $val) { ?>
            <TR class="tr<?php echo $key % 2; ?>" id="user<?php echo $val['s_id']; ?>" height="50" style="height: 50px; position: relative; overflow: hidden">
                <TD align="center">
                    <?php echo $val['need_name']; ?> <i <?php if($val['is_view'] == 0){ ?> style="color:#ff0000">（进行中） <?php } else{ ?>>（已结束）<?php }?></i>
                </TD>

                <TD align="center"><?php echo $val['need_desc']; ?></TD>
                <TD align="center"><?php echo $val['need_time']; ?> 到 <?php echo $val['need_time_end']; ?></TD>



                <TD align="center"><?php echo $val['need_place']; ?></TD>
                <TD align="center"><?php echo $val['need_num']; ?></TD>
                <TD align="center"><?php echo $val['need_yijian']; ?></TD>
                <TD align="center"><?php echo date('Y-m-d', $val['created_at']); ?></TD>


                <TD align="center">
                    <A HREF="index.php?con=<?php echo $GLOBALS['setting']['adminpath']; ?>&act=dangyuanxuqiumodify&updateid=<?php echo $val['n_id']; ?>">评分及建议</A>|
                    <A HREF="index.php?con=<?php echo $GLOBALS['setting']['adminpath']; ?>&act=dangyuanxuqiu&type=del&id=<?php echo $val['n_id']; ?>"
                       onclick="return confirm('确认删除？');">删除</A>
                </TD>
            </TR>
        <?php } ?>
        </tbody>
    </TABLE>
</div>
<div class="pages"><?php echo $taglist['pageinfo']; ?></div>

</body>
</html>